import {
  ajax
} from '@/api'
import Vue from 'vue'
import Vuex from 'vuex'
import vuexPersistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [
    vuexPersistedstate()
  ],
  state: {
    userInfo: null,
  },
  getters: {},
  mutations: {
    changeUserInfo(state, payload) {
      state.userInfo = payload
    },
  },
  actions: {},
  modules: {}
})
